package com.biboheart.breport.engine;

import com.biboheart.breport.core.BrContext;
import com.biboheart.breport.source.BrDataSource;
import com.biboheart.breport.template.BrTemplate;

public abstract class BrEngineAbstract implements BrEngine, BrEngineFill {
    protected final BrContext context;
    protected BrDataSource dataSource;
    protected BrTemplate template;

    protected BrEngineAbstract(BrContext context) {
        this.context = context;
    }

    @Override
    public void setDataSource(BrDataSource dataSource) {
        this.dataSource = dataSource;
    }

    @Override
    public void setTemplate(BrTemplate template) {
        this.template = template;
    }
}
